package com.inspur.dgov.vlbod.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 直播列表信息
 * </p>
 *
 * @author chiyupei
 * @since 2023-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LiveBroadcastVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 直播主题
     */
    private String title;

    /**
     * 直播号
     */
    private String meetingRoomNumber;

    /**
     * 创建人姓名
     */
    private String userName;

    /**
     * 主讲人
     */
    private String speaker;

    /**
     * 简介
     */
    private String briefIntroduction;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime endTime;

    /**
     * 时长（单位分钟）
     */
    private Integer durationTime;

    /**
     * 直播缩略图
     */
    private String thumbnail;

    /**
     * 收藏数
     */
    private int collectNum;

    /**
     * 点赞数
     */
    private int thumbsUpNum;

    /**
     * 密码
     */
    private String meetingPassword;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 直播状态位(0:未开始 1:直播中 2:暂停 3:结束)
     */
    private String liveState;
}
